@import '@/less/common.less';

.basket {
  position: relative;
  min-height: 100vh;
  padding-bottom: 50px;


  .area-block {
    .safe-area();
  }

  .my-pop {
    padding: 30px 50px 0 50px;
    display: flex;
    flex-direction: column;


    .pop-title {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;

      .done {
        color: @themeColor;
        line-height: 50px;
        padding: 0 20px;
        margin-right: -20px;
      }

      .title {
        font-size: 35px;
      }
    }

    .main {
      .safe-area();
      margin-top: 50px;
      flex: 1;

      .cell {
        display: flex;
        align-items: center;
        padding: 0 var(--cell-horizontal-padding, 32px);

        .field {
          flex: 1;

          &.open-class {
            .van-icon-arrow-down {
              transform: rotate(180deg);
            }
          }

          .van-icon-arrow-down {
            height: 60px;
            transform: rotate(0);
            transition: all .3s;
          }
        }
      }

      .van-stepper {
        margin-left: var(--cell-horizontal-padding, 32px);

        input {
          width: 100px;
        }
      }

      .lable {
        width: 150px;
      }

      .picker {
        .toolbar-class {
          display: none;
        }
      }
    }
  }

  .van-action-sheet {
    View {
      background-color: #f7f8fa;
      background-color: var(--action-sheet-cancel-padding-color, #f7f8fa);

      .van-action-sheet__item:last-child {
        margin-top: var(--action-sheet-cancel-padding-top, 16px);
      }

      .van-action-sheet__item:not(:last-child) {
        border-bottom: 2px solid #f7f8fa;
      }
    }
  }

  .my-cell {

    .des {
      width: 70px;
      height: 60px;
      display: flex;
      align-items: center;
    }

    .van-cell__title.title-class {
      display: flex;
      align-items: center;

      .title {
        font-weight: bold;
        font-size: 35px;
        .omit();
      }
    }

    .van-cell__value.value-class {
      display: flex;
      align-items: center;
      flex: 0 1 auto;
    }

    &.open-class {
      .van-icon-arrow-down {
        transform: rotate(180deg);
      }
    }

    .van-icon-arrow-down {
      height: 60px;
      transform: rotate(0);
      transition: all .3s;
    }
  }

  .material-list {
    margin-bottom: 20px;
    padding: 0 20px;
    border-radius: 0 0 30px 30px;
    background-color: #ffffff;

    .material {
      display: flex;

      &:last-child::after {
        display: none;
      }

      &::after {
        border-bottom: 1px dashed #dddddd;
      }

      .van-cell__title.title-class {
        flex: 0 1 auto;
      }

      .title {
        height: 100%;
        display: flex;
        align-items: center;

        .radio {
          margin-right: 30px;
          display: flex;
          align-items: center;
        }

      }

      .name {
        flex: 1;
        display: flex;
        align-items: center;
      }

      .done {
        text-decoration: line-through;
        color: #999999;
      }

      .amount {
        width: 30%;
        display: flex;
        align-items: center;
        margin-left: 30px;
      }
    }
  }

  .edit-nav {
    .block {
      height: 120px;
    }

    .main {
      position: fixed;
      z-index: 99;
      width: 100%;
      left: 0;
      bottom: 0;
      background-color: #fff;

      .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--cell-horizontal-padding, 32px);
        height: 120px;
      }

      .shadow();

      .btn-group {
        display: flex;

        View {
          .btn();
          margin-left: 10px;

          &.btn-done {
            background-color: #ed5814;
            border-color: #ed5814;
            color: #ffffff;
          }

          &.btn-del {
            border-color: rgba(238, 10, 36, 1);
            background-color: #ee0a24;
            color: #ffffff;
          }
        }
      }
    }
  }
}
